<?php 
require '../dao/chongzhisetdao.php';
$select=$_GET['select'];
$dao=new chongzhisetdao();
$jiekoulist=$dao->Chaxunjk();
$dao2=new chongzhisetdao();
$chongzhisetlist=$dao2->Chaxun($select);//查询id

//var_dump($chongzhisetlist);
?>
    <form  action="../controller/handout.php?con=chongzhiset&action=cha" method="post">
    <table>
    
    <tr>   
    <td>分类查询：
    <select size="1" name="select"><?php foreach ($jiekoulist as $jiekou){ ?>
    <?php foreach ($jiekou as $i=>$jiek){?>	
	<option><?php echo $jiek; ?></option>
	<?php } ?> <?php } ?> 
    </select>
    </td>   
    <td><input type="submit"  value="查询"/></td>
    </tr>
   
    </table>
    </form>
    <input id="return" type="button"  value="返回"/>
<table class="tab">
<tr>
	<td>记录ID</td>
	<td>用户名</td>
	<td>充值数额</td>
	<td>接口</td>
	<td>交易时间↑</td>
</tr>
<?php 
 foreach ($chongzhisetlist as $chongzhiset){ ?>
 <tr>
	<?php foreach ($chongzhiset as $i=>$value){?>
	<td><?php echo $value; ?></td>
	<?php } ?>
<?php }?> 
</table>
<script type="text/javascript" src="../jQuery/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
   $("#return").click(function(){
	   window.location.href="main.php?url=chongzhiset.php";
   });
</script>


